package com.dotndot.custom.widget;

import com.dotndot.custom.log.LOG;

public class CommonView
{
    public static class Button
    {        
        private static final long   CLICK_EVENT_INTERVAL    = 500L;    
        private static long         mLastClickEventTime     = 0L;  
        
        public static boolean isRepeatClick()
        {
            boolean isRepeatClick = true;
            long lNow = System.currentTimeMillis();
            
            if(lNow - mLastClickEventTime > CLICK_EVENT_INTERVAL)
            {
                isRepeatClick = false;
                mLastClickEventTime = lNow;
            }
            
            LOG.debug(">> isRepeatClick() return "+isRepeatClick);
            return isRepeatClick;
        }
    }
}
